#include "process.h"
char style[STYLE] = {'>', '\\', '-', '*', '^'};
void ProgressOn(){
    char show[NUM] = {0};
    memset(show, 0, sizeof(char) * NUM);
    int i = 0;
    char label[4] = {'|', '\\', '-', '/'};
    for(i = 0; i < NUM; i++){
         printf("[%-100s][%d%%][%c]\r", show, i, label[i % 4]);
         fflush(stdout);
         usleep(50000);
         show[i] = style[N]; 
    }
    printf("\n");
}
